using UnityEngine;
using UnityEditor; 
using System.Collections;
using System.Collections.Generic;


[CustomEditor(typeof(PositionByValueOnUpdate))]  
public class PositionByValueInspector : Editor
{
    public Character character;
    public CharacterAnimatedState state;
    
    PositionByValueOnUpdate action;

    private float forwardMax = 2.0f;
    private float upMax = 2.0f;
    private float rightMax = 2.0f;

    public override void OnInspectorGUI () 
    {  

        action = target as PositionByValueOnUpdate;

        EditorGUILayout.LabelField("forwardPositionMax");
        forwardMax = EditorGUILayout.FloatField(forwardMax);

        EditorGUILayout.LabelField("upPositionMax");
        upMax = EditorGUILayout.FloatField(upMax);

        EditorGUILayout.LabelField("rightPositionMax");
        rightMax = EditorGUILayout.FloatField(rightMax);

        EditorGUILayout.LabelField("forwardPosition");
        action.forward = EditorGUILayout.Slider(action.forward, 0,forwardMax);

        EditorGUILayout.LabelField("upPosition");
        action.up = EditorGUILayout.Slider(action.up, 0,upMax);

        EditorGUILayout.LabelField("rightPosition");
        action.right = EditorGUILayout.Slider(action.right, 0,rightMax);
    }
    

}


